package com.youngjun.auth.config;

import com.youngjun.common.util.SpringUtils;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ApplicationContextConfiguration {

    @Bean
    @ConditionalOnMissingBean
    public SpringUtils springUtils(ApplicationContext applicationContext) {
        return SpringUtils.init(applicationContext);
    }

}